package com.chapter.sample.controller;

import com.chapter.sample.service.datasource.DynamicDatasourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DynamicDatasourceController {

    @Autowired
    private DynamicDatasourceService dynamicDatasourceService;

    @RequestMapping("/dynamicData")
    public String dynamicData() {
        dynamicDatasourceService.dynamicData();
        return "ok";
    }
}
